<script setup>
import router from "@/router";
const goHome = () => {
  router.push('/home')
}
const toHelp = () => {
}
</script>

<template>
  <div class="header-box">
    <div class="flex-box" style="cursor: pointer;" @click="goHome">
      <div class="header-icon"></div>
      <div class="header-text">XXX管理系统</div>
    </div>

    <div class="flex-box">
      <div class="flex-box" style="cursor: pointer;margin-right: 36px;" @click="toHelp">
        <div class="help-out-ico help-ico"></div>
        <div class="help-out-text">帮助</div>
      </div>
    </div>
  </div>
</template>

<style scoped>
.header-box {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.flex-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-icon {
  width: 36px;
  height: 36px;
  margin-left: 50px;
  margin-right: 10px;
  background-image: url(../assets/header/logo.png);
  background-repeat: no-repeat, no-repeat;
  background-position: bottom right, top left;
  background-size: cover;
}

.header-text {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #ffffff;
  font-style: italic;
  user-select: none;
}

.help-out-ico {
  margin-right: 5px;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat, no-repeat;
  background-position: bottom right, top left;
  background-size: 100% 100%;
}

.help-ico {
  background-image: url(../assets/header/bangzhu.png);
}

.help-out-text {
  transition: color .3s;
  user-select: none;
}

.help-out-text:hover {
  color: #fff;
  font-weight: 700;
}
</style>
